package com.itheima.pattern.factory.simple_factory;


public class CoffeeStore {
    public Coffee orderCoffee(String type){
        SimpleCoffeeFactory factory = new SimpleCoffeeFactory();

        Coffee coffee = factory.createCoffee(type);

        coffee.addsugar();
        coffee.addMilk();
        return coffee;
    }
}
